<title>物业缴费列表</title>
<link type="text/css" href="${ctx}/resources/css/ace.min.1.css"  rel="stylesheet" />
<div class="hr hr-5 dotted"></div>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>房间id</th>
						<th>物业费起始时间</th>
						<th>物业费截止时间</th>
						<th>费用金额</th>
						<th>缴费情况</th>
						<th>创建时间</th>
						<th>修改时间</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<#list pager.itemList as u>
					<tr>
						<td><span class="green center">${u.id}</span></td>
						<td>${u.roomId!}</td>
						<td>${u.startTime!}</td>
						<td>${u.endTime!}</td>
						<td>
							${u.price!} ¥
						</td>
						<td>
							<#if u.status == 1>
								<span class="label label-sm label-warning arrowed">
									未缴费
								</span>
							<#else>
								<span class="label label-sm label-success arrowed">
									已缴费
								</span>
							</#if>
						</td>
							<td>
							<#if u.createTime??>
								${tagUtils.formatDate(u.createTime)!}
							</#if>
						</td>
						<td>
							<#if u.modifyTime??>
								${tagUtils.formatDate(u.modifyTime!)!}
							</#if>
						</td>
						<td>
							<#if u.state == 1>
								正常
							<#else>
								禁用
							</#if>
						</td>
						<td>
							<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
								<a class="green" href="${ctx}/admin/payment/edit-${u.id}${suffix}" alt="编辑">
									<i class="icon-pencil bigger-130"></i>
								</a>
								<a class="red" onclick="isDel('${ctx}/admin/payment/delete-${u.id}${suffix}')" alt="Delete">
									<i class="icon-trash bigger-130"></i> 
								</a>
							</div>
						</td>
					</tr>
				</#list>
				</tbody>
			</table>
		</div><!-- /.table-responsive -->
		
		<div class="hr hr-18 dotted hr-double"></div>
		
		
	</div><!-- /span -->
</div><!-- /row -->

<#if errorMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer red"></i>
		<span class="pink">${errorMsg}</span>
	</h4>
</#if>

<#if infoMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer green"></i>
		<span class="pink">${infoMsg}</span>
	</h4>
</#if>
<script>
	function isDel(url){
		if(!confirm("确认要删除？")){ 
				return false;		
		}else{
			location.href = url;
		}
	}

$(document).ready(function(){
	RP.addBreadcrumb([{name:"房间列表", active: true}, {name:"所有物业缴费列表", active: true}]);
	$("#breadcrumbs ul").append('&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/admin/payment/add?roomId=${roomId}"><i class="icon-zoom-in"></i><span class="label label-warning arrowed-in arrowed-in arrowed-right">新增物业缴费</span></a>');
});
</script>